import request from '@/utils/httpRequest'

// 0元购商品获取
export function searchZeroBuyList (data = {}) {
  return request({
    url: '/bihs/sangift-goods/search',
    method: 'post',
    data
  })
}

// 设置返还金额
export function updateRebatePrice (data = {}) {
  return request({
    url: '/bihs/sangift-goods/update',
    method: 'post',
    data
  })
}
// 设置分享基数
export function updateSanGiftGoods (data = {}) {
  return request({
    url: '/bihs/sangift-goods/updateSanGiftGoods',
    method: 'post',
    data
  })
}

//删除礼包
export function deleteGoodsGift (id) {
  return request({
    url: `/bihs/sangift-goods/delete?id=${id}`,
    method: 'post'
  })
}

// 新增商品
export function addGoodsGift (data = {}) {
  return request({
    url: `/bihs/sangift-goods/add`,
    method: 'post',
    data
  })
}
